<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : DistanceProxy</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='DistanceProxy::DistanceProxy'>DistanceProxy</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li>Object</li></ul>
</section>

</section>

<section id="summary">

 A distance proxy is used by the GJK algorithm. It encapsulates any shape.
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='DistanceProxy::count'>count
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='DistanceProxy::radius'>radius
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='DistanceProxy::vertices'>vertices
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
<h2>Constructors</h2>
<dl>
<dt>
<code><a href='DistanceProxy.html#DistanceProxy::DistanceProxy'>DistanceProxy</a>()</code>
</dt>
<dd>

 Constructs a new DistanceProxy.
</dd>
</dl>
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code><code><a href='int.html#int::int'>int</a></code> <a name='DistanceProxy::getSupport'>getSupport</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='DistanceProxy::getSupport::direction'>direction</a>)</code></dt>
<dd>

 Get the supporting vertex index in the given direction.
</dd>
<dt>
<code><code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='DistanceProxy::getSupportVertex'>getSupportVertex</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='DistanceProxy::getSupportVertex::direction'>direction</a>)</code></dt>
<dd>

 Get the supporting vertex in the given direction.
</dd>
<dt>
<code>void <a name='DistanceProxy::setFromShape'>setFromShape</a>(&lt;dynamic&gt; <a name='DistanceProxy::setFromShape::shape'>shape</a>)</code></dt>
<dd>

 Initialize the proxy using the given shape. The shape
 must remain in scope while the proxy is in use.
</dd>
</dl>
</section>

<footer></footer>

</body></html>
